/*
 * @Author: 黄达全
 * @Date: 2024-08-17 21:02:42
 * @LastEditTime: 2024-08-17 21:25:55
 */

import type { ApiResponse } from "@/common/type"

export type SkusApi = {
    page: (page: number, size: number) => Promise<ApiResponse<SkusPageVO>>,
    add:(form: SkusAddForm) => Promise<ApiResponse<null>>,
    update:(form: SkusEditForm) => Promise<ApiResponse<null>>,
    delete:(ids: number[]) => Promise<ApiResponse<null>>,
}
export type SkusSelectVO = {
    id: number;
    name: string;
    type: number,
    order: number,
    status: number,
    standards: string,
    createManagerName: string,
    lastUpdateManagerName: string,
    createTime: string,
    updateTime: string,
}
export type SkusPageVO = {
  total: number,
  records:SkusSelectVO[]
}
export type SkusAddForm = {
    name: string;
    type: number,
    order: number,
    status: number,
    standards: string,
}
export type SkusEditForm = {
    id:number,
    name: string;
    type: number,
    order: number,
    status: number,
    standards: string,
}